 

function documentItemCheckCtrl() {
  'ngInject';
  this.folders = [
    {
      active: true,
    },
    {
      active: false,
    },
    {
      active: false,
    },
  ];

  this.getImgUrl = () => {
    let type = $state.params.type;
    let imgName = 'book' + type + '.png';
    return require('../../../assets/images/' + imgName);
  };

  this.selectFolder = (index) => {
    this.folders.forEach((item) => {
      item.active = false;
    });
    this.folders[index].active = true;
  }
}

export default documentItemCheckCtrl;